package com.bloom.model;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import com.bloom.util.validation.UserCheck;
import com.bloom.util.validation.ServiceCheck;

public class ServiceInfo {

	public static enum UserType {
		SEEKER, HELPER
	}

	public static enum ServiceType {
		FRIENDS, VEHICLE, LUGGAGE
	}

	@NotNull(groups = { UserCheck.class, ServiceCheck.class })
	private UserType userType;

	@NotNull(groups = ServiceCheck.class)
	@Size(min = 1, groups = ServiceCheck.class)
	private ServiceType[] services;

	public void setUserType(UserType userType) {
		this.userType = userType;
	}

	public UserType getUserType() {
		return userType;
	}

	public void setServices(ServiceType[] services) {
		this.services = services;
	}

	public ServiceType[] getServices() {
		return services;
	}
}
